package com.hz.score.search.repository;

import com.hz.score.search.document.EntScore;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;

public interface EntScoreRepository extends MongoRepository<EntScore, ObjectId> {

    @Query("{$and:[{'cre_cod':?0},{'dat_yea':?1}]}")
    EntScore getEntScoreByUnique(String creditCode, String dataYear);
}
